<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" >
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>在线租房</h1>
<form method="get" action="/springhouse/houseinfo/select">
    查询户型<input type="text" name="typeName" value=""><input type="submit" value="查询">
</form>
<a href="/springhouse/houseinfo/add">发布房源</a>
<table>
    <tr>
        <td>id</td>
        <td>描述</td>
        <td>户型</td>
        <td>租金</td>
        <td>发布时间</td>
    </tr>
    <tr th:each="contact:${pageInfo.list}">
        <td th:text="${contact.houseId}"></td>
        <td><a th:text="${contact.typeName}" th:href="@{/update1(id=${contact.houseId})}"></a> </td>
        <td th:text="${contact.houseDesc}"></td>
        <td th:text="${contact.monthlyRent}"></td>
        <td th:text="${contact.publishDate}"></td>
    </tr>

</table>

<button><a href="#" th:href="@{/select(pageNo=${pageInfo.firstPage},typeName=${contact.typeName})}">首页</a></button>
<button><a href="#" th:href="@{/select(pageNo=${pageInfo.prePage},typeName=${contact.typeName})}">上一页</a></button>
<button><a href="#" th:href="@{/select(pageNo=${pageInfo.nextPage},typeName=${contact.typeName})}">下一页</a></button>
<button><a href="#" th:href="@{/select(pageNo=${pageInfo.lastPage},typeName=${contact.typeName})}">末页</a></button>
第[(${pageInfo.pageNum})]页/共[(${pageInfo.pages})]页
</body>
</html>